.border-1px, .border-top-1px, .border-right-1px, .border-bottom-1px, .border-left-1px {
    position: relative;
    border: none;
}

/*线条颜色*/
.border-top-1px:after, .border-right-1px:after, .border-bottom-1px:after, .border-left-1px:after {
    background-color: #dfdfdf;
}

/*上边边框一像素*/
.border-top-1px:after {
    pointer-events: none;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    transform-origin: 0 0;
}

/*右边边框一像素*/
.border-right-1px:after {
    pointer-events: none;
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    transform-origin: 0 0;
}

/*底边边框一像素*/
.border-bottom-1px:after {
    pointer-events: none;
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    transform-origin: 0 0;
}

/*左边边框一像素*/
.border-left-1px:after {
    pointer-events: none;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    transform-origin: 0 0;
}

/*边框一像素*/
.border-1px:after {
    pointer-events: none;
    content: "";
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 200%;
    height: 200%;
    border: 1px solid #dfdfdf;
    -webkit-transform-origin: left top;
    transform-origin: left top;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    .border-1px, .border-top-1px, .border-right-1px, .border-bottom-1px, .border-left-1px {
        transform: scaleY(0.5);
    }
}

@media only screen and (-webkit-min-device-pixel-ratio: 3) {
    .border-1px, .border-top-1px, .border-right-1px, .border-bottom-1px, .border-left-1px {
        transform: scaleY(0.33);
    }
}